#include "client.h"

Client::Client(QTcpSocket *socket)
{
    this->socket = socket;
    nickname = "";
    messageSize = 0;
}

void Client::SetNickname(QString name)
{
    nickname = name;
}

void Client::SendMessage(QByteArray message)
{
    socket->write(message);
}

QTcpSocket* Client::GetSocket()
{
    return socket;
}

QString Client::GetNickname()
{
    return nickname;
}
